vVMX: use latched VMCS machine address
authorJan Beulich <jbeulich@suse.com>
Fri, 26 Feb 2016 11:15:36 +0000 (12:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Feb 2016 11:15:36 +0000 (12:15 +0100)
commit825c6dddf5993ab6b84590026cd7b5454a7d5e94
treefe4670bc83d86fcc6f85352a33b1726a70bbaae6
parent158ba53323cc0fcdb833798139a2f20a15dad5e2
vVMX: use latched VMCS machine address

Instead of calling domain_page_map_to_mfn() over and over, latch the
guest VMCS machine address unconditionally (i.e. independent of whether
VMCS shadowing is supported by the hardware).

Since this requires altering the parameters of __[gs]et_vmcs{,_real}()
(and hence all their callers) anyway, take the opportunity to also drop
the bogus double underscores from their names (and from
__[gs]et_vmcs_virtual() as well).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Liang Z Li <liang.z.li@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/intr.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/hvm/vmx/vvmx.h